home *** CD-ROM | disk | FTP | other *** search
Wrap
<?xml version="1.0" encoding="EUC-KR"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko"><head><!-- XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX This file is generated from xml source: DO NOT EDIT XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX --> <title>╗τ┐δ└┌┴ñ└╟ ┐└╖∙ └└┤Σ - Apache HTTP Server</title> <link href="./style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" /> <link href="./style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" /> <link href="./style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" /> <link href="./images/favicon.ico" rel="shortcut icon" /></head> <body id="manual-page"><div id="page-header"> <p class="menu"><a href="./mod/">╕≡╡Γ</a> | <a href="./mod/directives.html">┴÷╜├╛ε╡Θ</a> | <a href="./faq/">FAQ</a> | <a href="./glossary.html">┐δ╛ε</a> | <a href="./sitemap.html">╗τ└╠╞«╕╩</a></p> <p class="apache">Apache HTTP Server Version 2.2</p> <img alt="" src="./images/feather.gif" /></div> <div class="up"><a href="./"><img title="<-" alt="<-" src="./images/left.gif" /></a></div> <div id="path"> <a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="./">Version 2.2</a></div><div id="page-content"><div id="preamble"><h1>╗τ┐δ└┌┴ñ└╟ ┐└╖∙ └└┤Σ</h1> <div class="toplang"> <p><span>░í┤╔╟╤ ╛≡╛ε: </span><a href="./en/custom-error.html" hreflang="en" rel="alternate" title="English"> en </a> | <a href="./es/custom-error.html" hreflang="es" rel="alternate" title="Español"> es </a> | <a href="./ja/custom-error.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | <a href="./ko/custom-error.html" title="Korean"> ko </a></p> </div> <p>└Ñ╕╢╜║┼═┤┬ ┐└╖∙│¬ ╣«┴ª░í ╣▀╗²╟▀└╗╢º ╛╞╞──í└╟ └└┤Σ└╗ ╝│┴ñ╟╥ ╝÷ └╓┤┘.</p> <p>╝¡╣÷░í ┐└╖∙│¬ ╣«┴ª╕ª ╣▀░▀╟▀└╗╢º ║╕│╛ ╗τ┐δ└┌┴ñ└╟ └└┤Σ└╗ ┴ñ└╟╟╥ ╝÷ └╓┤┘.</p> <p>╜║┼⌐╕│╞«░í ┴╫└║ ░µ┐∞ "500 Server Error" └└┤Σ ┤δ╜┼ ╗τ┐δ└┌┐í░╘ ┤⌡ ─ú▒┘╟╤ ╣«▒╕╕ª ╗τ┐δ╟╧░┼│¬ ┤┘╕Ñ (░░└║ ╗τ└╠╞«│¬ ┐▄║╬ ╗τ└╠╞«└╟) URL╖╬ ╕«┤┘└╠╖║╝╟└╗ ╟╥ ╝÷ └╓┤┘.</p> </div> <div id="quickview"><ul id="toc"><li><img alt="" src="./images/down.gif" /> <a href="#behavior">╟α╡┐</a></li> <li><img alt="" src="./images/down.gif" /> <a href="#configuration">╝│┴ñ</a></li> <li><img alt="" src="./images/down.gif" /> <a href="#custom">╗τ┐δ└┌┴ñ└╟ ┐└╖∙ └└┤Σ░· ╕«┤┘└╠╖║╝╟</a></li> </ul></div> <div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> <div class="section"> <h2><a name="behavior" id="behavior">╟α╡┐</a></h2> <h3>└╠└ⁿ ╟α╡┐</h3> <p>NCSA httpd 1.3└║ ╗τ┐δ└┌┐í░╘ ╣½└╟╣╠╟╧░φ ┴÷╖τ╟╤ ┐└╖∙╣«└╗ ║╕│┬┤┘. ╣«┴ª░í ╣▀╗²╟╤ └╠└»╕ª ╖╬▒╫┐í │▓▒µ ╝÷╡╡ ╛°╛·┤┘.</p> <h3>╗⌡╖╬┐ε ╟α╡┐</h3> <p>╝¡╣÷┤┬ ┤┘└╜░· ░░└║ └╧└╗ ╟╥ ╝÷ └╓┤┘:</p> <ol> <li>NCSA└╟ ░φ┴ñ╡╚ ╣«▒╕ ┤δ╜┼ ┤┘╕Ñ ╣«▒╕╕ª ║╕┐⌐┴╓░┼│¬</li> <li>░░└║ ╗τ└╠╞«└╟ URL╖╬ ╕«┤┘└╠╖║╝╟╟╧░┼│¬</li> <li>┐▄║╬ ╗τ└╠╞«└╟ URL╖╬ ╕«┤┘└╠╖║╝╟╟╤┤┘.</li> </ol> <p>┤┘╕Ñ ╗τ└╠╞«└╟ URL╖╬ ╕«┤┘└╠╖║╝╟╟╧┤┬ ░═└╠ └»┐δ╟╥ ╝÷ └╓┴÷╕╕, └╠ ░µ┐∞ ╣«┴ª╕ª ╝│╕φ╟╧░┼│¬ ╖╬▒╫╟╧┤┬╡Ñ ╟╩┐Σ╟╤ ┴ñ║╕┴▀ └╧║╬╕╕ └ⁿ┤▐╡╚┤┘.</p> <p>┐└╖∙┐í ┤δ╟╤ ┴ñ║╕╕ª └ⁿ┤▐╟╧▒Γ└º╟╪ ╛╞╞──í┤┬ CGI╜─└╟ ╗⌡╖╬┐ε ╚»░µ║»╝÷╕ª ┴ñ└╟╟╤┤┘:</p> <div class="example"><p><code> REDIRECT_HTTP_ACCEPT=*/*, image/gif, image/x-xbitmap, image/jpeg<br /> REDIRECT_HTTP_USER_AGENT=Mozilla/1.1b2 (X11; I; HP-UX A.09.05 9000/712)<br /> REDIRECT_PATH=.:/bin:/usr/local/bin:/etc<br /> REDIRECT_QUERY_STRING=<br /> REDIRECT_REMOTE_ADDR=121.345.78.123<br /> REDIRECT_REMOTE_HOST=ooh.ahhh.com<br /> REDIRECT_SERVER_NAME=crash.bang.edu<br /> REDIRECT_SERVER_PORT=80<br /> REDIRECT_SERVER_SOFTWARE=Apache/0.8.15<br /> REDIRECT_URL=/cgi-bin/buggy.pl </code></p></div> <p><code>REDIRECT_</code> ┴ó╡╬╗τ┐í ┴╓╕±╟╧╢≤.</p> <p>├╓╝╥╟╤ <code>REDIRECT_URL</code>░· <code>REDIRECT_QUERY_STRING</code>└║ (cgi-script│¬ cgi-include└╧) ╗⌡ URL╖╬ │╤░▄┴°┤┘. ┤┘╕Ñ ║»╝÷┤┬ ┐└╖∙░í ╣▀╗²╟╧▒Γ └╠└ⁿ┐í <span class="transnote">(<em>┐¬┴╓;</em> └╠╕º┐í╝¡ <code>REDIRECT_</code>╕ª ╗½ ╚»░µ║»╝÷░í)</span> ┴╕└τ╟╤ ░µ┐∞┐í╕╕ └╓┤┘. <code class="directive"><a href="./mod/core.html#errordocument">ErrorDocument</a></code>░í <em>┐▄║╬╖╬</em> (░░└║ ╝¡╣÷╢≤╡╡ <code>http:</code>┐═ ░░└║ ╜║┼┤(scheme)└╕╖╬ ╜├└█╟╤┤┘╕Θ) ╕«┤┘└╠╖║╝╟╟╤┤┘╕Θ └╠┴▀ ╛ε╢▓ ░═╡╡ ╝│┴ñ╡╟┴÷ <strong>╛╩┤┬┤┘</strong>.</p> </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> <div class="section"> <h2><a name="configuration" id="configuration">╝│┴ñ</a></h2> <p><code class="directive"><a href="./mod/core.html#allowoverride">AllowOverride</a></code>░í └√└²╚≈ ╝│┴ñ╡╟╛·┤┘╕Θ .htaccess ╞─└╧┐í╝¡ <code class="directive"><a href="./mod/core.html#errordocument">ErrorDocument</a></code>╕ª ╗τ┐δ╟╥ ╝÷ └╓┤┘.</p> <p>┤┘└╜└║ ┐╣└╠┤┘...</p> <div class="example"><p><code> ErrorDocument 500 /cgi-bin/crash-recover <br /> ErrorDocument 500 "Sorry, our script crashed. Oh dear" <br /> ErrorDocument 500 http://xxx/ <br /> ErrorDocument 404 /Lame_excuses/not_found.html <br /> ErrorDocument 401 /Subscription/how_to_subscribe.html </code></p></div> <p>╣«╣²└║,</p> <div class="example"><p><code> ErrorDocument <3-digit-code> <action> </code></p></div> <p>░í┤╔╟╤ action└║,</p> <ol> <li>├Γ╖┬╟╥ ╣«▒╕. ╡√┐╚╟Ñ (")╕ª ╣«▒╕ ╛╒┐í ║┘└╬┤┘. ╡┌┐í │¬┐└┤┬ ╡√┐╚╟Ñ┤┬ ├Γ╖┬╡╚┤┘. <em>┴╓└╟: ╛╒┐í ║┘└║ ╡√┐╚╟Ñ (")┤┬ ├Γ╖┬╡╟┴÷ ╛╩┤┬┤┘.</em></li> <li>╕«┤┘└╠╖║╝╟╟╥ ┐▄║╬ URL.</li> <li>╕«┤┘└╠╖║╝╟╟╥ │╗║╬ URL.</li> </ol> </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div> <div class="section"> <h2><a name="custom" id="custom">╗τ┐δ└┌┴ñ└╟ ┐└╖∙ └└┤Σ░· ╕«┤┘└╠╖║╝╟</a></h2> <p>URL╖╬ ╕«┤┘└╠╖║╝╟╟╧┤┬ ╛╞╞──í ╟α╡┐└║ ╜║┼⌐╕│╞«/server-include┐í ╚»░µ║»╝÷╕ª ┤⌡ │╤░▄┴╓╡╡╖╧ ║»░µ╡╟╛·┤┘.</p> <h3>└╠└ⁿ ╟α╡┐</h3> <p>╕«┤┘└╠╖║╝╟╡╟┤┬ ╜║┼⌐╕│╞«┐í ╟Ñ┴╪ CGI ║»╝÷╡Θ└╠ │╤╛ε░ú┤┘. ╛ε╡≡┐í╝¡ ╕«┤┘└╠╖║╝╟└╠ └╧╛ε│╡┤┬┴÷ ╛╦ ╝÷ ╛°┤┘.</p> <h3>╗⌡╖╬┐ε ╟α╡┐</h3> <p>╕«┤┘└╠╖║╝╟╡╚ ╜║┼⌐╕│╞«┤┬ ╗⌡╖╬┐ε ╚»░µ║»╝÷╡Θ└╗ ╗τ┐δ╟╥ ╝÷ └╓┤┘. ╕≡╡╬ ╛╒┐í <code>REDIRECT_</code>░í ║┘╛ε└╓┤┘. <code>REDIRECT_</code> ╚»░µ║»╝÷┤┬ ┐°╖í CGI ╚»░µ║»╝÷╕φ ╛╒┐í <code>REDIRECT_</code>╕ª ║┘┐⌐╝¡ ╕╕╡τ┤┘. <em>┐╣╕ª ╡Θ╛ε</em>, <code>HTTP_USER_AGENT</code>┤┬ <code>REDIRECT_HTTP_USER_AGENT</code>░í ╡╟╛·┤┘. └╠╖▒ ║»╝÷┐í ├▀░í╖╬ ╜║┼⌐╕│╞«░í ┐°╖í URL└╗ ╛╦╡╡╖╧ ╛╞╞──í┤┬ <code>REDIRECT_URL</code>░· <code>REDIRECT_STATUS</code>╕ª ┴ñ└╟╟╤┤┘. ┐°╖í URL░· ╕«┤┘└╠╖║╝╟╡╚ URL ╕≡╡╬ ┴ó▒┘ ╖╬▒╫┐í ▒Γ╖╧╟╥ ╝÷ └╓┤┘.</p> <p>ErrorDocument░í ░░└║ ╝¡╣÷┐í └╓┤┬ CGI ╜║┼⌐╕│╞«╖╬ ╕«┤┘└╠╖║╝╟╟╤┤┘╕Θ, ╜║┼⌐╕│╞«┤┬ ┼¼╢≤└╠╛≡╞«┐í░╘ ┐└╖∙ ╗≤╚▓└╗ ╚«╜╟╚≈ └ⁿ┤▐╟╧▒Γ└º╟╪ ├Γ╖┬┐í "<code>Status:</code>" ╟∞┤⌡ ╟╩╡σ╕ª ╞≈╟╘╟╪╛▀ ╟╤┤┘. ┐╣╕ª ╡Θ╛ε, Perl╖╬ └█╝║╟╤ ErrorDocument ╜║┼⌐╕│╞«┤┬ ┤┘└╜░· ░░┤┘:</p> <div class="example"><p><code> ... <br /> print "Content-type: text/html\n"; <br /> printf "Status: %s Condition Intercepted\n", $ENV{"REDIRECT_STATUS"}; <br /> ... </code></p></div> <p><code>404 Not Found</code>┐═ ░░└║ ╞»┴ñ ┐└╖∙ ╗≤╚▓┐í ┤δ╟╤ ╜║┼⌐╕│╞«╢≤╕Θ, ┤δ╜┼ <span class="transnote">(<em>┐¬┴╓;</em> ░φ┴ñ╡╚)</span> ╞»┴ñ ╗≤┼┬─┌╡σ┐═ ┐└╖∙╣«└╗ ╗τ┐δ╟╥ ╝÷ └╓┤┘.</p> <p>(┼¼╢≤└╠╛≡╞«┐í░╘ ╕«┤┘└╠╖║╝╟└╗ ┐Σ├╗╟╧▒Γ└º╟╪) └└┤Σ┐í <code>Location:</code> ╟∞┤⌡╕ª ╞≈╟╘╟╤┤┘╕Θ, ╜║┼⌐╕│╞«┤┬ <em>╣▌╡σ╜├</em> (<code>302 Found</code> ░░└║) └√└²╟╤ <code>Status:</code> ╟∞┤⌡╕ª ├Γ╖┬╟╪╛▀ ╟╘└╗ ┴╓└╟╟╧╢≤. ▒╫╖╕┴÷╛╩└╕╕Θ <code>Location:</code> ╟∞┤⌡░í ╛╞╣½ ╝╥┐δ╛°░╘ ╡╔ ╝÷ └╓┤┘.</p> </div></div> <div class="bottomlang"> <p><span>░í┤╔╟╤ ╛≡╛ε: </span><a href="./en/custom-error.html" hreflang="en" rel="alternate" title="English"> en </a> | <a href="./es/custom-error.html" hreflang="es" rel="alternate" title="Español"> es </a> | <a href="./ja/custom-error.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> | <a href="./ko/custom-error.html" title="Korean"> ko </a></p> </div><div id="footer"> <p class="apache">Copyright 1995-2006 The Apache Software Foundation or its licensors, as applicable.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p> <p class="menu"><a href="./mod/">╕≡╡Γ</a> | <a href="./mod/directives.html">┴÷╜├╛ε╡Θ</a> | <a href="./faq/">FAQ</a> | <a href="./glossary.html">┐δ╛ε</a> | <a href="./sitemap.html">╗τ└╠╞«╕╩</a></p></div> </body></html>